<?php
class indexMod extends commonMod{

	// 首页
	public function index(){

		// 产品列表
		$arr = __query("select * from {tabpre}product where `show`=1 and `recover`=0 and `rmd`=1 order by sequence desc, datetime desc, id desc limit 0,4");
		$this->assign('prolist', $arr);

		// 企业动态
		$newsarr = __query("select * from {tabpre}news where `show`=1 and `recover`=0 and `rmd`=1 order by sequence desc, datetime desc, id desc limit 0,4");
		$this->assign('newslist', $newsarr);

		$this->display('index_index');
	}
}